package org.example.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 关注信息对象 utu_following
 *
 * @author coderfun
 * @date 2024-12-04
 */
public class UtuFollowing extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键，负责所有关注类的查询
     */
    private Long id;

    /**
     * 关注者id
     */
    private Long fromUserId;

    /**
     * 被关注者id
     */
    private Long toUserId;

    /**
     * 关注关系的枚举，1正在关注，2取消关注
     */
    private String type;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Long getFromUserId() {
        return fromUserId;
    }

    public void setToUserId(Long toUserId) {
        this.toUserId = toUserId;
    }

    public Long getToUserId() {
        return toUserId;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fromUserId", getFromUserId())
                .append("toUserId", getToUserId())
                .append("type", getType())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
